public class Test {
    public static void main(String[] args) {
        MyTestHeap testHeap = new MyTestHeap();
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        testHeap.initElem(array);
        System.out.println("打印创建好的堆");
        testHeap.creatHeap();
        testHeap.printHeap();
        System.out.println();
        /**System.out.println("打印插入元素后的堆");
        testHeap.push(80);
        testHeap.printHeap();*/
        //System.out.println("删除一次元素后的堆");
        //testHeap.pop();
        //testHeap.printHeap();
        //System.out.println();
       // System.out.println("删除两次元素后的堆");
        //testHeap.pop();
        //testHeap.printHeap();
        //排序完成后的堆
        //System.out.println();
        System.out.println("排序完成后的堆");
        testHeap.heapSort();
        testHeap.printHeap();
    }
}
